home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BlastDOS
/
[DOS_Application]_BIT_Software_-_BitCom_3.58c_-_Distribution_Disks.zip
/
RECFILE.ACT
< prev
next >
Wrap
Text File
|
1990-06-01
|
1KB
|
25 lines
trace(1) {turn DEBUG ON}
{ shows you to do logon and receive a file }
{ from the host computer after you are connected and logon }
{ Invoke this file after you have gone thru the logon sequence }
{ Action file to initiate receive from host System }
{ }
{ you can invoke this action with or without a filename as }
{ an argument. If no file name is given, you will be asked }
{ Check if filename argument given, prompt if not }
{ }
{ You can even invoke this file by hitting a key if you }
{ assign it to a key: e.g. alt-r = 'invoke recfile' }
{ }
@a = @1 {GET ARGUMENT ONE}
if (@1 <> "") goto :noprompt {SEE IF ARGUMENT }
typecr(""); {PUT A NEW LINE}
@a = prompt("Enter receive filename: "); {ASK FOR A FILE NAME & STORE IN @A}
if (@a = "") exit; {IF NO FILE NAME, QUIT ACTION FILE}
:noprompt {FILE NAME IS IN @1}
{The following sequence request the host to send you a file}
"d"; {ASK HOST TO DOWNLOAD (you receive)}
cwait("?"); @a; @return; {WAIT FOR ? THEN TELL THE HOST THE NAME IN @a}
cwait("..."); @return; {WAIT FOR ...}
recvfile(@a, "ascii", "$07$07"); {GET A FILE IN ASCII MODE}